package com.ffcs.crmd.tsp.common.netty;

import com.ffcs.crmd.tsp.common.netty.enu.NettyRequestResult;

/**
 * 
 * 功能说明:请求结果
 *
 * @author ZHONGFUHUA
 * 
 * @since 1.0.0-SNAPSHOT
 *
 */
public class RequestResult {
    /**
     * 请求结果
     */
    private NettyRequestResult requestResultType = NettyRequestResult.SUCCESS;
    
    /**
     * 请求失败异常
     */
    private String             errorMessage;
    
    /**
     * 包体
     */
    private String             body;
    
    public RequestResult() {
        
    }
    
    public RequestResult(NettyRequestResult requestResultType) {
        this.requestResultType = requestResultType;
    }
    
    public NettyRequestResult getRequestResultType() {
        return requestResultType;
    }
    
    public void setRequestResultType(NettyRequestResult requestResultType) {
        this.requestResultType = requestResultType;
    }
    
    public String getErrorMessage() {
        return errorMessage;
    }
    
    public void setErrorMessage(String errorMessage) {
        this.errorMessage = errorMessage;
    }
    
    /**
     * 功能说明: 获取包体
     *
     * @return body 包体
     */
    public String getBody() {
        return body;
    }
    
    /**
     * 功能说明: 设置包体
     *
     * @param body 包体 
     */
    public void setBody(String body) {
        this.body = body;
    }
    
}
